package com.jycrm.dao.serve.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Query;
import net.sf.hibernate.Session;

import org.springframework.orm.hibernate.HibernateCallback;

import com.jycrm.common.PagedListHolder;
import com.jycrm.dao.core.AbstractService;
import com.jycrm.dao.serve.ICrmServiceAttachmentDao;

import com.jycrm.domain.serve.CrmServiceAttachment;

public class CrmServiceAttachmentDaoImpl extends AbstractService implements ICrmServiceAttachmentDao {

	public void save(CrmServiceAttachment attachment) {
		this.persistenceManager.create(attachment);
		
	}

	public void update(CrmServiceAttachment attachment) {
		// TODO Auto-generated method stub
		this.persistenceManager.update(attachment);
	}

	public void delete(CrmServiceAttachment attachment) {
		// TODO Auto-generated method stub
		this.persistenceManager.delete(attachment);
		
	}

	public CrmServiceAttachment getCrmServiceAttachmentByID(Long id) {
		return (CrmServiceAttachment) queryManager.getObjectById(
				CrmServiceAttachment.class, id);
	}
	
	
	
	

}
